function changeDate(date) {
	var m = date.getMonth() + 1;
	var d = date.getDate();
	if (m >= 1 && m <= 9) { m = "0" + m; }
	if (d >= 0 && d <= 9) { d = "0" + d; }
	var timer = date.getFullYear() + "-" + m + "-" + d
	return timer;
}
function getUrlQueryString(names, urls) {
	urls = urls || window.location.href;
	urls && urls.indexOf("?") > -1 ? urls = urls
		.substring(urls.indexOf("?") + 1) : "";
	var reg = new RegExp("(^|&)" + names + "=([^&]*)(&|$)", "i");
	var r = urls ? urls.match(reg) : window.location.search.substr(1)
		.match(reg);
	if (r != null && r[2] != "")
		return decodeURIComponent(r[2]);
	return null;
};
function getWeek(arr) {
	let arr1 = [];
	if (arr.length > 0) {
		arr.forEach(item => {
			let obj = {
				sTime: item.stime,
				eTime: item.etime,
				sShow: false,
				eShow: false
			};
			arr1.push(obj);
		});
		return arr1;
	} else {
		let obj = {
			sTime: null,
			eTime: null,
			sShow: false,
			eShow: false
		};
		arr1.push(obj);
		return arr1;
	}
};